package adaptorDemo.exp;

import java.io.IOException;

/**
 * @author zsh
 * @Description
 * @create 2022-04-19 19:53
 */
public class Main {
    public static void main(String[] args) {
        FileIO fileIO = new FileProperties();

        try {
            fileIO.readFromFile(".\\code\\src\\adaptorDemo\\exp\\file.txt");
            fileIO.setValue("year", "2022");
            fileIO.setValue("month", "4");
            fileIO.setValue("day", "19");
            fileIO.writeToFile("newFile.txt");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
